<?php
return [
    'adminEmail' => 'admin@example.com',
    /**
     * 守护进程
     */
    'daemon' => [

        'task' => [
            'masterPidFilePath' => '@runtime/pid/task.process.pid',
        ],
        'copy' => [
            'masterPidFilePath' => '@runtime/pid/copy.process.pid',
        ],
        //同步进程
        'sync' => [
            'masterPidFilePath' => '@runtime/pid/sync.process.pid',
            'masterName' => 'pdd_sync', //进程名称
            'workerNumber' => 5, //进程数量
            'workerName' => 'pdd_sync_work' //work进程名称
        ],
        //同步商品进程
        'syncdetail' => [
            'masterPidFilePath' => '@runtime/pid/syncdetail.process.pid',
            'masterName' => 'pdd_syncdetail', //进程名称
            'workerNumber' => 5, //进程数量
            'workerName' => 'pdd_syncdetail_work' //work进程名称
        ],
        //批量操作任务进程
        'syncbatch' => [
            'masterPidFilePath' => '@runtime/pid/syncbatch.process.pid',
            'masterName' => 'pdd_syncbatch', //进程名称
            'workerNumber' => 5, //进程数量
            'workerName' => 'pdd_syncbatch_work' //work进程名称
        ],
        //批量操作任务商品进程
        'syncbatchdetail' => [
            'masterPidFilePath' => '@runtime/pid/syncbatchdetail.process.pid',
            'masterName' => 'pdd_syncbatchdetail', //进程名称
            'workerNumber' => 5, //进程数量
            'workerName' => 'pdd_syncbatchdetail_work' //work进程名称
        ],
        //同步运费模版
        'synclogistics' => [
            'masterPidFilePath' => '@runtime/pid/synclogistics.process.pid',
            'masterName' => 'pdd_synclogistics', //进程名称
            'workerNumber' => 5, //进程数量
            'workerName' => 'pdd_synclogistics_work' //work进程名称
        ],
        //采集经常
        'crawler' => [
            'masterPidFilePath' => '@runtime/pid/crawler.process.pid',
            'masterName' => 'pdd_crawler', //进程名称
            'workerNumber' => 5, //进程数量
            'workerName' => 'pdd_crawler_work' //work进程名称
        ],
        //入云库进程配置
        'cloud' => [
            'masterPidFilePath' => '@runtime/pid/cloud.process.pid',
            'masterName' => 'pdd_cloud', //进程名称
            'workerNumber' => 10, //进程数量
            'workerName' => 'pdd_cloud_work' //work进程名称
        ],
        //上货进程配置
        'push' => [
            'masterPidFilePath' => '@runtime/pid/push.process.pid',
            'masterName' => 'pdd_push', //进程名称
            'workerNumber' => 20, //进程数量
            'workerName' => 'pdd_push_work' //work进程名称
        ],
        //上货进程配置
        'pushrefound' => [
            'masterPidFilePath' => '@runtime/pid/pushrefound.process.pid',
            'masterName' => 'pdd_pushrefound', //进程名称
            'workerNumber' => 20, //进程数量
            'workerName' => 'pdd_pushrefound_work' //work进程名称
        ]

    ],
    'supportEmail' => 'support@example.com',
    'senderEmail' => 'noreply@example.com',
    'senderName' => 'Example.com mailer',
    'user.passwordResetTokenExpire' => 3600,
    'user.passwordMinLength' => 8,
    'queue' => [
        'crawler' => 'goods:crawler', //采集队列名称
        'copy' => 'goods:copy', //上货队列名称
        'cloud' => 'goods:cloud', //入云库队列名称
        'sync' => 'goods:sync', //入同步队列名称
        'copyrefound' => 'goods:copyrefound', //上货补救队列名称
        'cloudrefound' => 'goods:cloudrefound', //上货补救队列名称
        'syncDetail' => 'goods:syncDetail', //入同步商品队列名称
        'syncLogistics' => 'goods:syncLogistics', //入同步运费模版队列名称
        'syncBatch' => 'goods:syncBatch', //批量操作任务
        'syncBatchDetail' => 'goods:syncBatchDetail', //批量操作商品
    ],
    'aint-queue' =>[
        'copy_channel' => 'goodsCopy', //宝贝上货队列
        'cloud_channel' => 'goodsCloud', //入云库队列
        'spider_channel' => 'goodsSpider' //采集队列
    ],
    /**
     * swoole task 相关配置
     */
    'swoole_task' => [
        'ip' => '127.0.0.1',
        'port' =>  9506, //task 端口
        'work_num' => 1, //work 进程数量
        'task_num' => 5, //task 进程数量
    ],
    /**
     * 复制任务相关配置
     */
    'copy_task' => [
        'ip' => '127.0.0.1',
        'port' =>  9508, //task 端口
        'work_num' => 1, //work 进程数量
        'task_num' => 20, //task 进程数量
    ],
    'allowUpload' => '|png|jpg|jpeg|txt|csv', //允许上传的文件后缀名称
    'pddImageExt' => ['jpg','png','JPG','PNG','JPEG','jpeg'], //pdd 允许的图片类型
    'upload_path' => '/web/upload', //已项目的web目录为根目录配置
    'allow_size' => 10 * 1024 * 1024, //文件上传大小
    /**
     * 阿里云OSS相关配置
     */
    'AliyunOss' =>  array(
        'accessKeyId'       => 'LTAI4G7pWzyCjWGY6NASCizj',
        'accessKeySecret'   => '1tTdw45dcoRzRMXaztlQSLyWtZ8Lvk',
        'bucket'            => 'izh-images',
        'endpoint'          => 'https://img.izhaohuo.com',
        'isCName'           => true,
        'securityToken'     => null,
        'requestProxy'      => null,
    ),
    //请求接口超时时间
    'request_timeout' => 5000,
    'api_url' => 'http://pcall.mebei.vip', //code 换token 请求地址
    'mall_url' => 'http://mms-api.edianduoduo.com:1001/?s=/api/', //多店铺 请求地址
    'mall_points' => 1200, //授权绑定店铺成功加的点数
    'mall_token' => 'aG1jY1pV2tWb1=UnRVamJsYyITlNXbmM', //多店铺token
    'isv_url' => 'http://pcall.mebei.vip', //请求封装isv 地址
    'pdd_url' => 'http://mfs-api.mebei.vip', //请求pdd地址
    'client_id' => 'e8ed6522198a4145ae0c271a960c0209', //请求授权时携带client_id
    'client_secret' => 'dd70ad49fccf44e11ba3db29f7d5201687c6fc41', //请求授权时携带client_secret
    'callback_url' => 'http://pddsoft.mebei.vip', //授权成功回调地址
    'state' => 'web_bjsh', //回调项目表示
    'login_expires' => 86400, //登录账号过期时间,默认一天
    'project_tag' => 'Lenovo', //接口项目表示
    'request_auth_url' => 'https://fuwu.pinduoduo.com/service-market/auth', //拼多多网页授权地址

    //搬家默认设置
    'copy_default' => require __DIR__ . '/copy_default.php',
    //sku属性名称相似值
    'similar_props' => require __DIR__ . '/similar.php',
    'similar_attr' => require __DIR__ . '/attr_similar.php',
    'font_type' => require __DIR__ . '/font_type.php',
    //拼多多商品发货允许超过48小时的类目
    'allow_shipment_limit' => [5525,1984,1897,898,1899,1900,1901,1909,1910,1911,1912,2484,2550,2552,4603,4602,4597,2525,2529,4604,4886,4590,4604,4594,4600,2505,2514,2555,1960,1961,1965,1966,1967,1970,1971,1974,1975,1976,1977,1978,1979,1983,2034,1996,1998,2007,5538,5539,5706,5691,5703,5705,5690,5693,2548,2513,1981,1962,1963,1964,1968,1969,1980,5531,5534,5536]
];
